package testdemo;


import entity.AppleTree;

public class Test {
    public static void main(String[] args) {
        //继承现实生活一样一样的
//        AppleTree  appleTree = new AppleTree();
//
//        appleTree.setName("Apple树");// 使用父类  属性与方法
//        appleTree.setBrand("糖心苹果");
//        appleTree.setGrowTime(8);
//        appleTree.setHarvested(false);
//        appleTree.setStatus("生长期");

        AppleTree appleTree = new AppleTree("apple",1,8,20,"生长期",false,"糖心苹果");

        appleTree.print();

    }
}
